package Videojuego;

import java.awt.Image;

import javax.swing.ImageIcon;

public class Enemigo {

	private String enemigo = "enemigo.png";
	private int x, y, ancho, alto;
	private boolean visible;
	private Image imagenE;

	public Enemigo() {
		ImageIcon iconoImagen = new ImageIcon(this.getClass().getResource(enemigo));
		imagenE = iconoImagen.getImage();
		ancho = imagenE.getWidth(null);
		alto = imagenE.getHeight(null);
		visible = true;
		x = 90;
		y = 100;
	}

	public boolean esVisible() {
		return visible;
	}

	public void Visible(Boolean visible) {
		this.visible = visible;
	}

	public Image conseguirImagen() {
		return imagenE;
	}

}
